Package i2p :: Module samclasses :: Class Deque
[show private | hide private]
[frames | no frames]

Class Deque

Known Subclasses:
StringBuffer

A double-ended queue.
Method Summary
  __init__(self)
  __len__(self)
Number of items in the deque.
  _partition(self)
  pop_first(self)
Pop an item off the beginning of the deque, and return it.
  pop_last(self)
Pop an item off the end of the deque, and return it.
  push_first(self, obj)
Prepend obj to the beginning of the deque.
  push_last(self, obj)
Append obj to the end of the deque.

Method Details

__len__(self)
(Length operator)

Number of items in the deque.

pop_first(self)

Pop an item off the beginning of the deque, and return it.

pop_last(self)

Pop an item off the end of the deque, and return it.

push_first(self, obj)

Prepend obj to the beginning of the deque.

push_last(self, obj)

Append obj to the end of the deque.

Generated by Epydoc 2.1 on Mon Aug 02 01:07:41 2004 http://epydoc.sf.net